import axiosData from "@/api/axios";
export default {
  /**
   * @description: 获取仓库管理 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/storeHouse/queryPageList", params);
  },
  /**
   * @description: 获取所有仓库管理 *代表必填
   * @param {String/Number} page *
   * @return {Array}
   */
  queryByOrganizationMarkList(params) {
    return axiosData.get("/v3/agricultural-equipment/v1/storeHouse/queryByOrganizationMarkList", params);
  },
  /**
   * @description: 新增仓库管理
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/storeHouse/add", params);
  },
  /**
   * @description: 编辑仓库管理
   * @param {Object} params *
   * @return {Object}
   */
  edit(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/storeHouse/edit", params);
  },
  /**
   * @description: 批量删除仓库管理
   * @param {Object} params *
   * @return {Object}
   */
  delList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/storeHouse/deleteByStoreHouseCodeList", params);
  }
};
